package com.sams.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.sams.entity.Notice;
import com.sams.entity.NoticeShowinfo;
import com.sams.entity.User;

public interface NoticeService {
	public int add(Notice notice);
	public int delete(int id);
	public Notice findById(int id);
	public PageInfo<Notice> list(int currentPage,String name);
	
	public List<Notice> getList();
	
	public int addNoticeShow(int noticeId,User user);
	
	public List<NoticeShowinfo> listShowUser(int noticeId,User user);
	/**
	 * 查询县直 账户下的已阅学校
	 * @param noticeId
	 * @param userId
	 * @return
	 */
	public List<NoticeShowinfo> selectSchoolNameByXZId(Integer noticeId, Integer userId);
}
